<template>
  <div>
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
<!--      <el-form-item label="审批人">-->
<!--        <el-input v-model="formInline.user" placeholder="审批人"></el-input>-->
<!--      </el-form-item>-->
<!--      <el-form-item>-->
<!--        <el-button type="primary" @click="onSubmit">查询</el-button>-->
<!--      </el-form-item>-->
    </el-form>

    <el-table
      :data="tableData"
      style="width: 200%">
      <el-table-column
        prop="vehicleId"
        label="车辆唯一编号"
        width="120">
      </el-table-column>
      <el-table-column
        prop="plateNumber"
        label="车牌号"
        width="120">
      </el-table-column>
      <el-table-column
        prop="vehicleType"
        label="车型"
        width="120">
      </el-table-column>
      <el-table-column
        prop="color"
        label="颜色"
        width="120">
      </el-table-column>
      <el-table-column
        prop="vehicleBrand"
        label="车辆品牌"
        width="120">
      </el-table-column>
      <el-table-column
        prop="vehicleEdition"
        label="车联系统版本"
        width="120">
      </el-table-column>
      <el-table-column
        prop="makeYear"
        label="制造年份"
        width="120">
      </el-table-column>
      <el-table-column
        prop="dayPrice"
        label="日租金"
        width="120">
      </el-table-column>
      <el-table-column
        prop="faultName"
        label="故障说明"
        width="120">
      </el-table-column>
      <el-table-column
        prop="cityName"
        label="省/市/区"
        width="200">
        <template v-slot="r">
          {{r.row.provinceName}}  - {{r.row.cityName}} - {{r.row.districtName}}
        </template>
      </el-table-column>
      <el-table-column
        prop="pic"
        label="车辆图片"
        width="120">
        <template v-slot="s">
          <el-image
            style="width: 100px;height: 100px"
            :src="s.row.pic"
          ></el-image>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'ShowVehicle',
  data() {
    return {
      tableData:[],
      formInline:{},

    }
  }, methods: {
    list(){
      this.axios.post("/vehicle/show"+this.formInline).then(res=>{
        this.tableData=res.data.data;
      })
    }
  }, created() {
    this.list();
  }
}
</script>

<style scoped>

</style>
